package com.chenggcode.simple.aop;

import com.chenggcode.simple.aop.services.TestAopContextService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Chenggcode
 * @date 2025/7/1 10:47
 */
@RestController
@RequestMapping
@RequiredArgsConstructor
public class AopController {
    private final TestAopContextService testAopContextService;;

    @GetMapping
    public String testAop() {
        testAopContextService.m1();
        return "AOP Test Success";
    }
}
